package com.baomibing.flow.service;

import com.baomibing.core.common.SearchResult;
import com.baomibing.flow.dto.SysFlowDto;

import java.util.Set;

public interface SysFlowService {

    SearchResult<SysFlowDto> search(SysFlowDto flow, int pageNumber, int pageSize);

    SearchResult<SysFlowDto> searchAllActive(SysFlowDto flow, int pageNumber, int pageSize);

    void saveFlow(SysFlowDto flow);

    void updateFlow(SysFlowDto flow);

    SysFlowDto getFlow(String id);

    void activeFlows(Set<String> ids);

    void stopFlows(Set<String> ids);

    void doCopy(SysFlowDto flow);

    void deleteFlows(Set<String> ids);

}
